package com.forum.system.domain;

import com.forum.common.annotation.Excel;
import com.forum.common.core.domain.model.BaseApiEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 贴子对象 tb_post
 *
 * @author forum
 * @date 2024-11-14
 */
public class TbPost extends BaseApiEntity
{
    private static final long serialVersionUID = 1L;

    /** 贴子id */
    private Long id;
    /* 用户id */
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /** 贴子类型 */
    @Excel(name = "贴子类型")
    private String type;

    /** 状态（0：待审核，1：审核通过） */
    @Excel(name = "状态", readConverterExp = "0：待审核，1：审核通过")
    private String status;

    /** 贴子内容 */
    @Excel(name = "贴子内容")
    private String content;

    /** 图片 */
    @Excel(name = "图片，多个")
    private String imgs;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private String userName;
    private String userAvatar;

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setImgs(String imgs)
    {
        this.imgs = imgs;
    }

    public String getImgs()
    {
        return imgs;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("status", getStatus())
            .append("content", getContent())
            .append("imgs", getImgs())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .toString();
    }
}
